﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;

namespace HDS.Admin.Api.Controllers
{
    public class AdminController : Controller
    {
        public int UserId { get { return Convert.ToInt32(User.FindFirstValue(ClaimTypes.Sid)); } }

        public string UserName { get { return User.FindFirstValue(ClaimTypes.Name); } }
    }
}
